Platform Explorer / Nuxeo Platform 2023.15

Contribution org.nuxeo.ecm.user.center.oauth.layouts--layouts

This contribution is part of XML component org.nuxeo.ecm.user.center.oauth.layouts inside nuxeo-user-oauth-2023.15.7.jar /OSGI-INF/oauth-layouts-contrib.xml

Extension Point

Extension point layouts of component WebLayoutManager.

Registration Order

33
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <layout name="oAuth2AuthorizedApplications">
          <templates>
            <template mode="any">
              /layouts/layout_authorized_applications_template.xhtml
            </template>
          </templates>
          <rows>
            <row>
              <widget>oAuth2ApplicationName</widget>
            </row>
            <row>
              <widget>oAuth2ApplicationAuthorizationDate</widget>
            </row>
          </rows>
    
          <widget name="oAuth2ApplicationName" type="text">
            <labels>
              <label mode="any">label.oauth2.authorizedApp.name</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>applicationName</field>
            </fields>
          </widget>
    
          <widget name="oAuth2ApplicationAuthorizationDate" type="datetime">
            <labels>
              <label mode="any">label.oauth2.authorizedApp.authorizationDate</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>applicationAuthorizationDate</field>
            </fields>
          </widget>
        </layout>
  • <layout name="oAuthAuthorizedApplications">
          <templates>
            <template mode="any">
              /layouts/layout_authorized_applications_template.xhtml
            </template>
          </templates>
          <rows>
            <row>
              <widget>appId</widget>
            </row>
            <row>
              <widget>creationDate</widget>
            </row>
            <row>
              <widget>duration</widget>
            </row>
          </rows>
    
          <widget name="appId" type="text">
            <labels>
              <label mode="any">AppId (Gadget) </label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.appId</field>
            </fields>
            <properties mode="any">
              <property name="help">
              label.oauth.help.appId
              </property>
            </properties>
          </widget>
    
          <widget name="creationDate" type="datetime">
            <labels>
              <label mode="any">Creation Date </label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.creationDate</field>
            </fields>
            <properties mode="any">
              <property name="help">
              label.oauth.help.creationDate
              </property>
            </properties>
          </widget>
    
          <widget name="duration" type="int">
            <labels>
              <label mode="any">Duration (in minutes)</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.durationInMinutes</field>
            </fields>
            <properties mode="any">
              <property name="help">
              label.oauth.help.durationInMinutes
              </property>
            </properties>
          </widget>
        </layout>
  • <layout name="oauth2ProviderTokenLayoutUserDashboard">
          <templates>
            <template mode="any">
              /directory/directoryOAuth_layout_template.xhtml
            </template>
          </templates>
          <rows>
            <row>
              <widget>id</widget>
            </row>
            <row>
              <widget>serviceName</widget>
            </row>
            <row>
              <widget>serviceLogin</widget>
            </row>
            <row>
              <widget>creationDate</widget>
            </row>
            <row>
              <widget>isShared</widget>
            </row>
            <row>
              <widget>sharedWith</widget>
            </row>
          </rows>
    
          <widget name="id" type="text">
            <labels>
              <label mode="any">label.oauth.token.id</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauth2Token.id</field>
            </fields>
            <widgetModes>
              <mode value="edit">hidden</mode>
            </widgetModes>
          </widget>
          <widget name="serviceName" type="text">
            <labels>
              <label mode="any">label.oauth.token.serviceName</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauth2Token.serviceName</field>
            </fields>
          </widget>
          <widget name="serviceLogin" type="text">
            <labels>
              <label mode="any">label.oauth.token.serviceLogin</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauth2Token.serviceLogin</field>
            </fields>
          </widget>
          <widget name="creationDate" type="datetime">
            <labels>
              <label mode="any">label.oauth.token.creationDate</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauth2Token.creationDate</field>
            </fields>
          </widget>
          <widget name="isShared" type="checkbox">
            <labels>
              <label mode="any">label.oauth.token.isShared</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauth2Token.isShared</field>
            </fields>
          </widget>
          <widget name="sharedWith" type="multipleUsersSuggestion">
            <labels>
              <label mode="any">label.oauth.token.sharedWith</label>
            </labels>
            <fields>
              <field>#{oauthUserTokens.sharedWith}</field>
            </fields>
            <properties widgetMode="edit">
              <property name="prefixed">true</property>
              <property name="minChars">3</property>
              <property name="hideHelpLabel">false</property>
            </properties>
            <widgetModes>
              <mode value="view_list">hidden</mode>
              <mode value="view_list_and_header">hidden</mode>
            </widgetModes>
          </widget>
        </layout>

XML Source

<extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <layout name="oAuth2AuthorizedApplications">
      <templates>
        <template mode="any">
          /layouts/layout_authorized_applications_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>oAuth2ApplicationName</widget>
        </row>
        <row>
          <widget>oAuth2ApplicationAuthorizationDate</widget>
        </row>
      </rows>

      <widget name="oAuth2ApplicationName" type="text">
        <labels>
          <label mode="any">label.oauth2.authorizedApp.name</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>applicationName</field>
        </fields>
      </widget>

      <widget name="oAuth2ApplicationAuthorizationDate" type="datetime">
        <labels>
          <label mode="any">label.oauth2.authorizedApp.authorizationDate</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>applicationAuthorizationDate</field>
        </fields>
      </widget>
    </layout>

    <layout name="oAuthAuthorizedApplications">
      <templates>
        <template mode="any">
          /layouts/layout_authorized_applications_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>appId</widget>
        </row>
        <row>
          <widget>creationDate</widget>
        </row>
        <row>
          <widget>duration</widget>
        </row>
      </rows>

      <widget name="appId" type="text">
        <labels>
          <label mode="any">AppId (Gadget) </label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.appId</field>
        </fields>
        <properties mode="any">
          <property name="help">
          label.oauth.help.appId
          </property>
        </properties>
      </widget>

      <widget name="creationDate" type="datetime">
        <labels>
          <label mode="any">Creation Date </label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.creationDate</field>
        </fields>
        <properties mode="any">
          <property name="help">
          label.oauth.help.creationDate
          </property>
        </properties>
      </widget>

      <widget name="duration" type="int">
        <labels>
          <label mode="any">Duration (in minutes)</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.durationInMinutes</field>
        </fields>
        <properties mode="any">
          <property name="help">
          label.oauth.help.durationInMinutes
          </property>
        </properties>
      </widget>
    </layout>

    <layout name="oauth2ProviderTokenLayoutUserDashboard">
      <templates>
        <template mode="any">
          /directory/directoryOAuth_layout_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>id</widget>
        </row>
        <row>
          <widget>serviceName</widget>
        </row>
        <row>
          <widget>serviceLogin</widget>
        </row>
        <row>
          <widget>creationDate</widget>
        </row>
        <row>
          <widget>isShared</widget>
        </row>
        <row>
          <widget>sharedWith</widget>
        </row>
      </rows>

      <widget name="id" type="text">
        <labels>
          <label mode="any">label.oauth.token.id</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauth2Token.id</field>
        </fields>
        <widgetModes>
          <mode value="edit">hidden</mode>
        </widgetModes>
      </widget>
      <widget name="serviceName" type="text">
        <labels>
          <label mode="any">label.oauth.token.serviceName</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauth2Token.serviceName</field>
        </fields>
      </widget>
      <widget name="serviceLogin" type="text">
        <labels>
          <label mode="any">label.oauth.token.serviceLogin</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauth2Token.serviceLogin</field>
        </fields>
      </widget>
      <widget name="creationDate" type="datetime">
        <labels>
          <label mode="any">label.oauth.token.creationDate</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauth2Token.creationDate</field>
        </fields>
      </widget>
      <widget name="isShared" type="checkbox">
        <labels>
          <label mode="any">label.oauth.token.isShared</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauth2Token.isShared</field>
        </fields>
      </widget>
      <widget name="sharedWith" type="multipleUsersSuggestion">
        <labels>
          <label mode="any">label.oauth.token.sharedWith</label>
        </labels>
        <fields>
          <field>#{oauthUserTokens.sharedWith}</field>
        </fields>
        <properties widgetMode="edit">
          <property name="prefixed">true</property>
          <property name="minChars">3</property>
          <property name="hideHelpLabel">false</property>
        </properties>
        <widgetModes>
          <mode value="view_list">hidden</mode>
          <mode value="view_list_and_header">hidden</mode>
        </widgetModes>
      </widget>
    </layout>
  </extension>